package Delete;

public class Student {
    public static void main(String[] args) {
        //创建三个数组分别储存学生姓名、学号、年龄
        String student[] = new String[3];//储存学生对象
        int studentNumber[] = new int[3];//储存学生学号
        int age[] = new int[3];//储存学生年龄
    }
    public static void Traverse(String student[],int studentNumber [],int age[]){
        for(int i=0;i<student.length;i++){
            System.out.println("第"+(i+1)+"个同学的姓名为:"+student[i]+" 学号为:"+studentNumber[i]+" 年龄为:"+age[i]);
        }
    }
}


